import request from "../utils/request";

const getOrderList = (queryInfo)=>{
    return request.get('/api/admin/orders',{params:{include:'goods,user,orderDetails',current:queryInfo.current,order_no:queryInfo.order_no,status:queryInfo.status}})
}
// 订单发货

const deliverOrder = (id,type)=>{
    return request({
        method:'patch',
        url:`/api/admin/orders/${id}/post`,
        params:{
            express_type:type,
            express_no:'5125452154225442'
        }
    })
}

export {
    getOrderList,
    deliverOrder
}